package com.zelix;

import java.io.File;
import java.util.Enumeration;
import java.util.Vector;

public class hc {

    private String b;
    private String c;
    private long d;
    private hc e;
    private Vector f;
    private String g;
    private ay a;
    private static String z[];

    public hc(String s, long l, String s1) {
        f = new Vector();
        c = s;
        b = s1;
        d = l;
        g = s1;
    }

    public hc(String s, long l, String s1, hc hc1) {
        super();
//label0:
//        {
        f = new Vector();
        c = s;
        b = s1;
        e = hc1;
        if (hc1 != null) {
            g = hc1.e() + "!" + s1;
            hc1.a(this);
//                if(nc.h == 0)
//                    break label0;
        } else
            g = s1;
//        }
        d = l;
    }

    private void a(hc hc1) {
        f.addElement(hc1);
    }

    public Enumeration a() {
        return f.elements();
    }

    public String b() {
        if (c == null)
            return b;
        else
            return c;
    }

    public long c() {
        return d;
    }

    public ay a() {
        return a;
    }

    public String e() {
        return g;
    }

    public String a(String s) {
        return g + "!" + s;
    }

    public String f() {
        return b;
    }

    public String g() {
        return (new File(b)).getName();
    }

    public static boolean b(String s) {
        int k = s.length();
        if (k > 4) {
            String s1 = s.substring(k - 4);
            if (s1.equalsIgnoreCase(z[3]) || s1.equalsIgnoreCase(z[5]) || s1.equalsIgnoreCase(z[4]) || s1.equalsIgnoreCase(z[2]) || s1.equalsIgnoreCase(z[1]) || s1.equalsIgnoreCase(z[0]))
                return true;
        }
        return false;
    }

    public boolean h() {
        if (a != null)
            return a.a();
        else
            return false;
    }

    public boolean i()
            throws rb {
        if (a != null)
            return a.b();
        else
            return false;
    }

    public boolean j() {
        return e == null;
    }

    public void a(ay ay1) {
        a = ay1;
    }

    private static String z(char[] chs) {
        byte key = 0;
        for (int i = 0; i < chs.length; i++) {
            switch (i % 5) {
                case 0:
                    key = 0x1a;
                    break;
                case 1:
                    key = 26;
                    break;
                case 2:
                    key = 86;
                    break;
                case 3:
                    key = 56;
                    break;
                case 4:
                    key = 60;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static {
        String as[];
        as = new String[6];
        as[0] = z("4i7J".toCharArray());
        as[1] = z("4h7J".toCharArray());
        as[2] = z("4m7J".toCharArray());
        as[3] = z("4`?H".toCharArray());
        as[4] = z("4\1777J".toCharArray());
        as[5] = z("4p7J".toCharArray());
        z = as;
    }
}